package com.zhao.fishingguideserver.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class RegisterRequest {
    @Pattern(regexp = "^.{5,16}$", message = "用户名长度必须在5-16位之间")
    private String username;

    @Pattern(regexp = "^.{5,16}$", message = "密码长度必须在5-16位之间")
    private String password;
}
